import request from '@/utils/request'

/**
 * 添加账单
 * @param data
 * @returns {AxiosPromise}
 */
export function addBill(data) {
  return request({
    url: '/bill',
    method: 'post',
    data
  })
}

export function inquireBill(star, end) {
  return request({
    url: '/bill',
    method: 'get',
    params: {
      'star': star,
      'end': end
    }
  })
}
